clean_up: checking errno at exit does not make sense
authorSami Kerola <kerolasa@iki.fi>
Sat, 9 Apr 2011 15:38:54 +0000 (17:38 +0200)
committerSami Kerola <kerolasa@iki.fi>
Sat, 9 Apr 2011 15:38:54 +0000 (17:38 +0200)
commitf6880ed5f48e1591007246760a64cfc33d5f1eb4
tree25c956c112a7220383802d8424daa872521289a7
parent5cbe8d07fb23db630e76d18022f20368312720ec
clean_up: checking errno at exit does not make sense

It seems that at least FreeBSD is setting errno when malloc is
successful. There is a change that other operating systems will
do similar things with same, or other system calls, and this will
invalidate the idea of checking errno at exit.

See also email list thread for further information.

http://lists.freebsd.org/pipermail/freebsd-questions/2011-April/229150.html

Reported-by: Roar Pettersen <rope1968@gmail.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
src/dhcpd-pools.c
src/other.c